package com.ysd.lis.controller.qc;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.qc.QcMaterialSummary;
import com.ysd.lis.request.qc.QcSummaryParam;
import com.ysd.lis.service.qc.QcMaterialSummaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工表
 * 前端控制器
 * </p>
 *
 * @author pengrongshuai
 * @since 2023-12-19
 */
@Api(tags = "质控总结")
@RestController
@RequestMapping("/api/qc/qcMaterialSummary")
public class QcMaterialSummaryController extends BaseController {

    @Autowired
    QcMaterialSummaryService qcMaterialSummaryService;

    @ApiOperation("获取质控物汇总信息")
    @GetMapping("/getQcMaterialSummary")
    public Result getQcMaterialSummary(QcSummaryParam param){
        return qcMaterialSummaryService.getQcMaterialSummary(param);
    }
    @ApiOperation("新增")
    @PostMapping("/addMaterialSummary")
    public Result addMaterialSummary(@RequestBody QcMaterialSummary supplier){
        return  qcMaterialSummaryService.addMaterialSummary(supplier);
    }

    @ApiOperation("修改")
    @PostMapping("/editMaterialSummary")
    public Result editMaterialSummary(@RequestBody QcMaterialSummary supplier) {
        return qcMaterialSummaryService.editMaterialSummary(supplier);
    }

}
